package com.gwc.schedule.service.impl;

import com.gwc.schedule.dao.SysScheduleDao;
import com.gwc.schedule.dao.impl.SysScheduleDaoImpl;
import com.gwc.schedule.pojo.SysSchedule;
import com.gwc.schedule.service.SysScheduleService;

import java.util.List;

public class SysScheduleServiceImpl implements SysScheduleService {
    private SysScheduleDao scheduleDao = new SysScheduleDaoImpl();

    @Override
    public List<SysSchedule> findAllScheduleByUid(int uid) {
        return scheduleDao.findAllScheduleByUid(uid);
    }

    @Override
    public Integer addScheduleByUid(int uid) {
        return scheduleDao.addScheduleByUid(uid);
    }

    @Override
    public Integer updateSchedule(SysSchedule sysSchedule) {
        return scheduleDao.updateSchedule(sysSchedule);
    }

    @Override
    public Integer deleteSchedule(int sid) {
        return scheduleDao.deleteSchedule(sid);
    }
}
